package com.core.reach.cloudhub.dao;

import com.core.reach.cloudhub.domain.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author ga.zhang
 * @version V1.0
 * @description: TODO
 * @date 2020/3/31 19:40
 **/
@Mapper
public interface OrderMapper {

    /**
     * 创建订单
     *
     * @param order 订单
     * @return Integer
     */
    Integer createOrder(Order order);

    /**
     * 修改订单状态
     * @param userId 用户编号
     * @param status 状态
     * @return Integer
     */
    Integer updateOrder(@Param("userId") Long userId,
                        @Param("status") Integer status);

}
